package tools;

public class FalseResult {
	public int beginPos = -1;
	public int endPos = -1;
	public String text = null;
	public String id = null;
	public String type = null;
	public FalseResult()
	{
		
	}
	public FalseResult(String line)
	{
		readLine(line);
	}
	
	public void readLine(String line)
	{
		String[] parts = line.split("\\|");
		type = parts[0];
		text = parts[3];
		id = parts[1];
		parts = parts[2].split("\\s+");
		beginPos = Integer.parseInt(parts[0]);
		endPos = Integer.parseInt(parts[1]);
	}
	
	public String toString()
	{
		String line = type+"|"+id+"|"+beginPos+" "+endPos+"|"+text;
		return line;
	}
}
